package com.ZeroCarbon.service;

import com.ZeroCarbon.domain.dto.GoodsPreviewDTO;
import com.ZeroCarbon.domain.po.Cart;
import com.ZeroCarbon.exception.BusinessLogicException;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ICartService extends IService<Cart> {
    void addGoodToCart(String id) throws BusinessLogicException;

    List<GoodsPreviewDTO> getGoodsFromCart() throws BusinessLogicException;

    void deleteGoodFromCart(String id) throws BusinessLogicException;
}
